<?php

namespace App\Http\Resources;

use App\Http\Resources\Traits\FilterResource;
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;

class UserResource extends JsonResource
{
    use FilterResource;

    /**
     * Transform the resource into an array.
     *
     * @param  Request $request
     * @return array
     */
    public function toArray($request): array
    {
        return array_merge(parent::toArray($request), $this->extra());
    }

    public function map(): array
    {
        return [];
    }
}
